//
//  MYGMyCollectionTableViewCell.swift
//  MYDoctor
//
//  Created by Denny on 2024/3/18.
//

import UIKit

class MYGMyCollectionTableViewCell: UITableViewCell {
    @IBOutlet weak var icon: UIImageView!
    
    @IBOutlet weak var time: UILabel!
    @IBOutlet weak var content: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func bindData(_ data: MYGTopicCollectionModel) {
//        self.icon.isHidden = true
        self.content.text = data.content
        self.time.text = data.created_at.toTimeString()
       
        self.icon.image = UIImage(named: "MYG_health_bg")
    }
   
   
}
